<tr id="<%= dom_id(order) %>" data-controller="row-link">
  <td class="p-0 w-10">
    <%= link_to order.number, spree.edit_admin_order_path(order), class: 'font-weight-bolder d-block p-2 px-3 text-decoration-none', data: { 'turbo-frame': '_top', row_link_target: :link } %>
  </td>
  <td class="w-15 cursor-pointer" data-action="click->row-link#openLink">
    <%= local_time_ago(order.completed? ? order.completed_at : order.created_at, format: '%b %e, %Y %l:%M%P', class: 'with-tip') %>
  </td>
  <td class="d-customer w-15 cursor-pointer" data-action="click->row-link#openLink">
    <%= render 'spree/admin/orders/customer_summary', order: order %>
  </td>
  <td class="text-wrap w-20 cursor-pointer" data-action="click->row-link#openLink">
    <% order.shipments.map(&:stock_location).compact.uniq.each_with_index do |stock_location, index| %>
      <% if index > 0 %>, <% end %><%= stock_location.name %>
    <% end %>
  </td>
  <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
    <%= order_payment_state(order) %>
  </td>
  <td class="w-10 cursor-pointer" data-action="click->row-link#openLink">
    <%= order_shipment_state(order) %>
  </td>
  <td class="text-right w-10 cursor-pointer" data-action="click->row-link#openLink">
    <%= pluralize(order.item_count, 'item') %>
  </td>
  <td class="text-right w-10 cursor-pointer" data-action="click->row-link#openLink">
    <%= order.display_total.to_html %>
  </td>
</tr>
